package com.jxl.domain.convert;

import com.jxl.domain.entity.SubjectLabelBO;
import com.jxl.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectLabelConvert {

    SubjectLabelConvert INSTANCE = Mappers.getMapper(SubjectLabelConvert.class);

    /**
     * 类转换
     * @param subjectLabelBO
     * @return
     */
    SubjectLabel convertBoToSubjectLabel(SubjectLabelBO subjectLabelBO);

    /**
     * 类转换
     * @param
     * @return
     */
    List<SubjectLabelBO> convertToSubjectLabelList(List<SubjectLabel> subjectLabelList);

}
